package com.hczoop.utils.designPattern.liabilityChain;

public class jingxi extends AbstractAction{
	 public static String Type ="江西";
		
		@Override
		public void todo(String type) {
			if(jingxi.Type.equals(type)){
				System.out.println("我是江西，我只处理江西的业务");
			}else{
				Action action = this.getAction();
				if(action != null){
					action.todo(type);//交给下个链上对象处理
				}else{
					super.todo(type);
				}
			}
		}
}
